package com.example.sangong.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.sangong.entity.Person;
import org.apache.ibatis.annotations.Param;

public interface PersonDao extends BaseMapper<Person> {
    /**
     * 根据人员id查询人员信息
     *
     * @param id
     * @return
     */
    Person selectPersonById(@Param("id") Long id);

    /**
     * 结合xml
     * @param page
     * @param name
     * @return
     */
    Page<Person> selectPageCustom(@Param("page") Page<Person> page, @Param("name") String name);

}
